package com.service;

import com.entity.Type;

import java.util.List;

public interface TypeService {
    //更具id查询类型
    Type getById(long id);
    List<Type> getAll();
    int modify(int id,String name);
    int add(String name);
    int delete(int id);

    List<Type> getByName(String typeName);
}
